// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fowo.api.entity.MemberDiscounts;
import com.fowo.api.model.member.discounts.MemberDiscountsItemVo;
import com.fowo.api.model.member.discounts.MemberDiscountsSearchParamPo;
import com.fowo.api.model.member.discounts.MemberDiscountsVo;
import java.util.Date;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface MemberDiscountsMapper extends BaseMapper<MemberDiscounts> {
  Page<MemberDiscountsItemVo> pageSearch(
    @Param("page") Page page,
    @Param("search") MemberDiscountsSearchParamPo search
  );
  List<MemberDiscountsItemVo> search(
    @Param("search") MemberDiscountsSearchParamPo search
  );
  Date searchLastUpdateTime(
    @Param("search") MemberDiscountsSearchParamPo search
  );
  /**
   * 搜索满足条件的所有记录的编号列表
   * @param search 搜索参数
   * @return 编号列表
   */
  List<Long> searchIds(@Param("search") MemberDiscountsSearchParamPo search);
  Long getIdByName(@Param("name") String name);

  List<Long> getIdsByName(@Param("list") List<String> list);

  String getNameById(@Param("id") Long id);

  List<String> getNameByIds(@Param("ids") List<Long> ids);
  MemberDiscountsVo selectVoById(@Param("id") Long id);
}
